﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Educational_School_ChangePassword" %>
<script type="text/javascript">
window.addEvent('domready',function(){
    new FormCheck('formSchoolChangePassword',{display:{tipsPosition:'left'},submit:false,onValidateSuccess:function(){
        MUI.showModalMessage('正在修改个人密码');
        new Request.JSON({url:'../Ajax/SchoolManage.aspx?Action=changePassword',noCache:true,onSuccess:function(result){
            MUI.hideModalMessage();
            if(result.error)
                MUI.appendStatusMessage({'text':result.msg});
            else
            {
                $('windowChangePassword').retrieve('instance').close();
                MUI.appendStatusMessage({'text':result.msg});
            }
		},onFailure:function(error){
			MUI.appendStatusMessage({'text':'AJAX提交表单的过程中发生未知错误。'});
			MUI.hideModalMessage();
	    }}).post($('formSchoolChangePassword'));	    
    }});
});
</script>
<form id="formSchoolChangePassword">
<table class="tableFixed" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr class="tableContent1">
        <td class="tableLeft1">原密码：</td>
        <td class="tableLeft2"><input class="input validate['required','length[6,16]']" name="oldPassword" type="password" /></td>
    </tr>
    <tr>
        <td class="tableLeft1">新密码：</td>
        <td class="tableLeft2"><input class="input validate['required','length[6,16]']" name="newPassword" type="password" /></td>
    </tr>
    <tr class="tableContent1">
        <td class="tableLeft1">重复新密码：</td>
        <td class="tableLeft2"><input class="input validate['required','length[6,16]']" name="confirmPassword" type="password" /></td>
    </tr>
    <tr>
        <td class="tableLeft1"></td>
        <td class="tableLeft2"><input class="submit button validate['submit']" type="button" value="提交修改" /></td>
    </tr>
</table>
</form>